﻿using DocManager.Infrastructure.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FastMember;
using System.Diagnostics;
using System.Text;
using System.Web.Routing;

namespace System.Web.Mvc
{
    public static class WebViewPageExtensionMethods
    {
        public static JavaScriptBuilder Scripts<TModel>( this WebViewPage<TModel> page )
        {
            return page.Context.TryGetOrCreate( () => new JavaScriptBuilder( page ) );
        }
    }
}